function parentDir()
{
    local this_dir=`pwd`
    local child_dir="$1"
    dirname "$child_dir"
    cd $this_dir
}

CURRENT_PATH=$(cd `dirname $0`; pwd)

serviceName=wms-server-jeecg
servicePackagePath=`parentDir "$CURRENT_PATH"`
dockerDestinationPath=/opt/wms/docker/$serviceName/

echo $servicePackagePath

if [ ! -d $dockerDestinationPath ]; then
    sudo mkdir -p $dockerDestinationPath
fi

cd $servicePackagePath/wms-server-jeecg-dev-cicd
mvn clean
mvn install -Dmaven.test.skip=true -Pdev
cp $servicePackagePath/wms-server-jeecg-dev-cicd/jeecg-module-system/jeecg-system-start/target/jeecg-system-start-3.5.2.jar $servicePackagePath/wms-server-jeecg-dev-cicd/jeecg-module-system/jeecg-system-start/docker
# cp $servicePackagePath/wms-cicd/docker/* $dockerDestinationPath
# cp $servicePackagePath/transtella-wms-biz/docker/transtella-wms.conf $dockerDestinationPath